package com.kun.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.pojo.domain.TradePay;
import com.kun.pojo.entity.Result;
import org.apache.rocketmq.client.exception.MQBrokerException;
import org.apache.rocketmq.client.exception.MQClientException;
import org.apache.rocketmq.remoting.exception.RemotingException;

public interface IPayService extends IService<TradePay> {

    /**
     * 创建支付订单
     */
    Result createPayment(TradePay tradePay);

    /**
     * 回调支付结果
     */
    Result callbackPayment(TradePay tradePay) throws MQBrokerException, RemotingException, InterruptedException, MQClientException;
}
